import { defineStore } from 'pinia'

import { ref} from 'vue';

export const useUserStore = defineStore('user', () => {
  // 状态定义
  const id = ref<number>(-1);
  const username = ref<string>('');
  const token = ref<string>('');

  return { id, username, token };
}
);
